package com.yvdedu.hospital.service.impl;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yvdedu.hospital.entity.User;
import com.yvdedu.hospital.mapper.HospitalAdminMapper;
import com.yvdedu.hospital.service.HospitalAdminService;

@Service
public class HospitalAdminSer implements HospitalAdminService {
	
//	Admin
	@Resource
	private HospitalAdminMapper hospitalAdminMapper;

	@Override
	public List<User> hospitalAdminquery(int role_id) {
		List<User> list = hospitalAdminMapper.hospitalAdminquery(role_id);
		return list;
	}

	@Override
	public List<User> hospitalAdminNamequery(User hospitalAdmin) {
		List<User> list = hospitalAdminMapper.hospitalAdminNamequery( hospitalAdmin );
		return list;
	}

	@Override
	public void hospitalAdminadd(User hospitalAdmin) {
		hospitalAdminMapper.hospitalAdminadd(hospitalAdmin);		
	}

	@Override
	public void hospitalAdminedit(User hospitalAdmin) {
		hospitalAdminMapper.hospitalAdminedit(hospitalAdmin);
	}

	@Override
	public void hospitaldelete(int id) {
		hospitalAdminMapper.hospitalAdmindelete(id);
	}

}
